<?php
class AuthorModel extends Model{
	
	//根据作者名称查找
	public function getAuthorByName($name){
		$author = M('author');
		$condition['enname'] = "'"+$name+"'";
		$condition['chname'] = "'"+$name+"'";
		$condition['nkname'] = "'"+$name+"'";
		$condition['_logic'] = "OR";
		
		$authorList = $author->where($condition)->select();
		
		return $authorList;
	}
}
?>